package tools

import "testing"

func TestIsDir(t *testing.T) {
	t.Run("is", func(sub *testing.T) {
		if !IsDir("testdata") {
			sub.Errorf("testdata expected to be a dir")
		}
	})

	t.Run("is-not", func(sub *testing.T) {
		if IsDir("non existent") {
			sub.Errorf("expected not to be a dir")
		}
	})
}
